package com.mine.redis.util.utils.lock;

import java.util.concurrent.TimeUnit;

/**
 * @author weixiao
 * @date 2024/8/16 14:30
 */
public interface Lock {

    boolean tryLock(String key, Long timeout, TimeUnit timeUnit);

    void unlock(String key);
}
